import {onMounted, ref,onUnmounted} from 'vue';
export function useMount(){
   let x=ref(0);
   let y=ref(0)
   function undata(event){
    x.value=event.pageX
   y.value=event.pageY
   }
   onMounted(()=>{
      window.addEventListener("mousemove",undata)
   })
   onUnmounted(()=>{
      window.addEventListener("mousemove",undata)
   })
   return{x,y}
}